org.eclipse.vtp.desktop.projects.core.internals
Class WebServicePort

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
      extended by org.eclipse.vtp.desktop.projects.core.internals.WebServicePort
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ObjectListener, WebServiceConstants, IVoiceToolsResource, IWebServicePort

public class WebServicePort
extends VoiceResource
implements IWebServicePort, WebServiceConstants

WebServicePort.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.desktop.projects.core.internals.WebServiceConstants
ATTRIBUTE, ATTRIBUTE_GROUP, BASE, COMPLEX_TYPE, CONTENT, ELEMENT, EXTENSION, FAULT, GROUP, INPUT, ITEM_TYPE, LIST, MEMBER_TYPES, MESSAGE, NAME, NS_WSDL, NS_XSD, OPERATION, OUTPUT, PART, PORT, PORT_TYPE, REF, RESTRICTION, SCHEMA, SERVICE, SIMPLE_CONTENT, SIMPLE_TYPE, STRING, TARGET_NAMESPACE, TYPE, TYPES, UNION, VALUE, XMLNS
 
Constructor Summary
WebServicePort(WebService webService, WebServiceTypeSet types, java.lang.ClassLoader classLoader, java.util.Map messagePartIndex, java.util.Map portServiceIndex, org.w3c.dom.Element wsdlPortTypeElement)
          Creates a new WebServicePort.
 
Method Summary
 java.lang.String getName()
           
protected  java.lang.String getObjectId()
          The object id is used by the event system to uniquely identify a project resource.
 IVoiceToolsResource getParent()
          Returns the parent of this resource.
 java.lang.String getServiceName()
          Returns the service name this port is bound under.
 IWebService getWebService()
          Returns the IWebService that contains this port.
 IWebServiceOperation getWebServiceOperation(java.lang.String name)
          Returns the web service operation with the specified name.
 java.util.List getWebServiceOperations()
          Returns the list of IWebServiceOperations defined for this web service port.
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
addRefreshListener, deferEvents, finalize, getAdapter, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

WebServicePort

public WebServicePort(WebService webService,
                      WebServiceTypeSet types,
                      java.lang.ClassLoader classLoader,
                      java.util.Map messagePartIndex,
                      java.util.Map portServiceIndex,
                      org.w3c.dom.Element wsdlPortTypeElement)
               throws java.lang.ClassNotFoundException
Creates a new WebServicePort.

Parameters:
webService - The web service that contains this port.
types - The web service types this port's operations will work on.
classLoader - The class loader to load the service class from.
messagePartIndex - The index of message part names.
portServiceIndex - The index of service name by port.
wsdlPortTypeElement - The XML element this port was declared in.
Throws:
java.lang.ClassNotFoundException
Method Detail

getObjectId

protected java.lang.String getObjectId()
Description copied from class: VoiceResource
The object id is used by the event system to uniquely identify a project resource. In this fashion, multiple references to the resource can be created and still be notified of events.

Specified by:
getObjectId in class VoiceResource
Returns:
A unique identifier for this resource

getName

public java.lang.String getName()
Specified by:
getName in interface IVoiceToolsResource
Returns:
The name of the resource

getParent

public IVoiceToolsResource getParent()
Description copied from interface: IVoiceToolsResource
Returns the parent of this resource. If this is a project resource this function returns this.

Specified by:
getParent in interface IVoiceToolsResource
Returns:
The parent of this resource resource

getServiceName

public java.lang.String getServiceName()
Description copied from interface: IWebServicePort
Returns the service name this port is bound under.

Specified by:
getServiceName in interface IWebServicePort
Returns:
The service name this port is bound under.

getWebServiceOperations

public java.util.List getWebServiceOperations()
Description copied from interface: IWebServicePort
Returns the list of IWebServiceOperations defined for this web service port.

Specified by:
getWebServiceOperations in interface IWebServicePort
Returns:
The list of IWebServiceOperations defined for this web service port.

getWebServiceOperation

public IWebServiceOperation getWebServiceOperation(java.lang.String name)
Description copied from interface: IWebServicePort
Returns the web service operation with the specified name.

Specified by:
getWebServiceOperation in interface IWebServicePort
Parameters:
name - The name of the web service operation to return.
Returns:
The web service operation with the specified name.

getWebService

public IWebService getWebService()
Description copied from interface: IWebServicePort
Returns the IWebService that contains this port.

Specified by:
getWebService in interface IWebServicePort
Returns:
The IWebService that contains this port.